//
//  UILabel+Extension.swift
//  weibo10
//
//  Created by 周荣硕 on 16/1/9.
//  Copyright © 2016年 grgbanking. All rights reserved.
//

import UIKit


extension UILabel{


    ///  便利构造函数
    ///
    ///  - parameter title:    title
    ///  - parameter fontSize: fontSize
    ///  - parameter color:    color
    ///
    ///  - returns: UILabel
    
    convenience init(title:String,fontSize:CGFloat=14,color:UIColor = UIColor.redColor()){
    
        self.init()
        
       text = title
       textColor = color
       font = UIFont.systemFontOfSize(fontSize)
        
       textAlignment = NSTextAlignment.Center
       numberOfLines = 0

        
    }

}